macromedia Your Account International Help
Products Support & Training DevNet Solutions Partners Downloads Store
Products Support & Training DevNet Solutions Partners Downloads Store
Home > Products > Director > Support > TechNote Index
Macromedia Director Support Center - TechNote

Changing the cursor in an embedded Flash movie

This Director example file shows how to change the cursor for embedded Macromedia Flash movies inside a Director movie.

When a Flash movie is imported into Director, it no longer has the ability to directly change the mouse cursor. Flash must rely on Director to handle this functionality. To do this, the Flash movie can pass Lingo commands to Director using the ActionScript getURL command.

To use this example you must have Flash 4 or higher and have a basic understanding of Flash ActionScript. For more information about Flash or ActionScript please refer to the Flash Support Center.

For more information on changing the cursor in Director and a full listing of the cursors available in Director please refer to Setting the cursor (TN 16060).

Developer Notes
The sample file included in this TechNote contains code comments and a cast member named "Developer Notes" which contains implementation details.

The embedded Flash movie in the sample has a button with a basic Rollover and Rollout function. The Rollover function uses the getURL command to pass Director the lingo command "cursor 280" to change the cursor to the pointing hand:

// this is the same as on mouseEnter in Director
on (rollover){
  getURL("lingo: cursor 280");
}

The Rollout function uses getURL to pass Director the command "cursor -1" to reset the cursor to the standard arrow:

// this is the same as on mouseLeave in Director
on (rollout){
  getURL("lingo: cursor -1");
}

Action Script
The following Flash Action Script command was used to create the functionality in this sample movie. Please refer to Flash help documentation for more information about this term: getURL. You can also visit the ActionScript dictionary online.

Note: This is just one of the many ways to create this functionality in Director. This download contains the following files:

> flash_cursor.dir
>

cursorSource.fla

Download the Windows zip file

ID: 15925
Product: Director
Versions: All
OS: All
Browser: All
Server: All
Database: All
Former ID: N/A
How useful was this document?
less more

1

2

3

4

5

How can the document be improved? (300 characters or less - you will not receive a reply.)

Last updated: May 1, 2003
Created: October 12, 2001